<?php
// 连接数据库

header('Content-Type:text/html;charset=utf8');  // 设置字符集

// 连接数据库所需参数设置
$servername = "localhost";
$username = "clever";
$password = "aStrongPassword";
$database = "vruc";


$conn = new mysqli($servername, $username, $password, $database);   // 连接使用mysqli数据库
if ($conn->connect_error) {                                         // 处理错误
    die("连接数据库失败：".$conn->connect_error);
}